package com.zood.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zood.dao.StoneDao;
import com.zood.dao.TemplateDao;
import com.zood.domain.stone;
import com.zood.domain.template;
import com.zood.service.templateService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class templateServiceImpl extends ServiceImpl<TemplateDao, template> implements templateService {

    @Autowired
    private TemplateDao templateDao;

    @Override
    public boolean save(template book) {
        return templateDao.insert(book) > 0;
    }

    @Override
    public boolean modify(template book) {
        return templateDao.updateById(book) > 0;
    }

    @Override
    public boolean delete(Integer id) {
        return templateDao.deleteById(id) > 0;
    }
}
